package com.example.chinese;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class Star_9 extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity9);
        Button bt19=(Button)findViewById(R.id.bt19);
        Button bt20=(Button)findViewById(R.id.bt20);
        bt19.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SharedPreferences sp=getSharedPreferences("data",MODE_PRIVATE);
                SharedPreferences.Editor editor=sp.edit();
                editor.putString("name10","表明无畏，你们的支持让我不怕质疑,虽成团但无实力沦为18线女团  ");
                editor.commit();
                Intent intent19=new Intent(Star_9.this,Star_20.class);
                startActivity(intent19);
            }
        });

        bt20.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SharedPreferences sp=getSharedPreferences("data",MODE_PRIVATE);
                SharedPreferences.Editor editor=sp.edit();
                editor.putString("name10","表明恐惧， 但你们的支持让我有动力去改变,成团后继续努力，成为第一女团");
                editor.commit();
                Intent intent20=new Intent();
                intent20.setClass(Star_9.this,Star_21.class);
                startActivity(intent20);
            }
        });
    }
}
